home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 1 / Gold Medal Software Volume 1 (Gold Medal) (1994).iso / prog / dasv10_.arj / DETCTDAM.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-09  |  309 b   |  15 lines

  1. // dice.lib function detect_damage()
  2. #include <conio.h>
  3. #include <iostream.h>
  4.  
  5. void detect_damage(int dice,int damage)
  6. {
  7. clrscr();
  8.  
  9.     if (damage == 0)
  10.         cout<<dice<<"D6  Killing damage";
  11.     if (damage == 1)
  12.         cout<<dice<<"D6  Normal damage ";
  13.     if (damage == 2)
  14.         cout<<dice<<"D6  Regular roll  ";
  15. }